package cn.com.suhenry.service.Impl;


import cn.com.suhenry.mapper.UserMapper;
import cn.com.suhenry.pojo.User;
import cn.com.suhenry.service.UserService;
import jdk.jfr.Threshold;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
@Autowired
    UserMapper userMapper;




    @Override
    public User findUserByName(String name) {
        return userMapper.selectByName(name);
    }

    @Override
    public void insertUser(User user) {
        userMapper.insertUser(user);
    }
}
